package com.sen.design.pattern.creational.abstractfactory;

/**
 * 抽象工厂：抽象工厂模式提供一个创建一系列相关或相互依赖对象的接口；无需指定它们具体的类
 */
public class Test {

    public static void main(String[] args) {
        CourseFactory courseFactory = new JavaCourseFactory();
        Video video = courseFactory.getVideo();
        Article article = courseFactory.getArticle();
        video.produce();
        article.produce();
    }
}
